package net.stogi.dsper.ui.client.module.datasource;

import net.stogi.common.gwt.dispatch.client.core.ActionManager;
import net.stogi.common.gwt.frame.client.core.EventBus;
import net.stogi.common.gwt.frame.client.module.AbstractModuleFactory;

public class DataSourceModuleFactory extends AbstractModuleFactory<DataSourceModule> {

	public DataSourceModuleFactory(ActionManager actionManager, EventBus eventBus) {
		super(actionManager, eventBus);
	}

	@Override
	public void getInstance(final ModuleInstanceCallback<DataSourceModule> callback) {
		callback.onBeforeModuleInstanceCreated();
		callback.onModuleInstanceCreated(new DataSourceModule(actionManager, eventBus));
	}
}
